package com.ty.springbootredis.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ty.springbootredis.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录 方法
     */
    @Select("SELECT u.*,r.* from sys_user u inner join sys_role r on u.usr_role_id = r.role_id")
    List<User> UsrLogin(String usrName, String usrPassword);





}
